home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ibmsyn.zip / SEMFIS73.H < prev    next >
Text File  |  1992-03-24  |  4KB  |  72 lines

  1.  
  2. /* NT IBM SDLC Adapter Device Driver: 8273 chip-specific objects */
  3.  
  4. #define ARxR_A1OK     0xe0       /* Adapter Receive Result byte: A1 OK        */
  5. #define ARxR_A2OK     0xe1
  6.  
  7. #define ARxR_ErrGeneral        0x00
  8. #define ARxR_ErrSelective      0x01
  9. #define ARxR_ErrCRC            0x03
  10. #define ARxR_ErrAbort          0x04
  11. #define ARxR_ErrIdle           0x05
  12. #define ARxR_ErrShort          0x07
  13. #define ARxR_ErrDMAOverrun     0x08
  14. #define ARxR_ErrBufO           0x09
  15. #define ARxR_ErrRLSD           0x0a
  16. #define ARxR_ErrRxIntOverrun   0x0b
  17.  
  18. #define ATxR_EarlyEOT          0x0c
  19. #define ATxR_TxCompleteOK      0x0d
  20. #define ATxR_ErrTxUnderrun     0x0e
  21. #define ATxR_ErrTxCTSDrop      0x0f
  22. #define ATxR_ErrTxFrameAborted 0x10
  23.  
  24. /*****************************************************************************/
  25. /* AS_ : Values for Adapter Status register                                  */
  26. /*****************************************************************************/
  27.  
  28. #define AS_TXIRA  0x01   /* bit 1: TxINT Result Available                    */
  29. #define AS_RXIRA  0x02   /* bit 1: RxINT Result Available                    */
  30. #define AS_TXINT  0x04   /* bit 2: Tx Interrupt                              */
  31. #define AS_RXINT  0x08   /* bit 3: Rx Interrupt                              */
  32. #define AS_CRBFF  0x10   /* bit 4: Command result buffer full                */
  33. #define AS_CPBFF  0x20   /* bit 5: Command parameter buffer full             */
  34. #define AS_CMBFF  0x40   /* bit 6: Command buffer full                       */
  35. #define AS_CMBSY  0x80   /* bit 7: Command busy                              */
  36.  
  37. /*****************************************************************************/
  38. /* AP_ : Values for Adapter Parameters to various commands                   */
  39. /*****************************************************************************/
  40.  
  41. #define AP_OMX25  0x20   /* Operating mode bit 5 - use HDLC abort characters */
  42. #define AP_OMETX  0x08   /* Operating mode bit 3 - use early End Tx ints     */
  43. #define AP_OMBFR  0x04   /* Operating mode bit 2 - use buffered A+C          */
  44. #define AP_OMFLG  0x01   /* Operating mode bit 0 - flag stream               */
  45. #define AP_IODLP  0x04   /* Serial IO mode bit 2 - data loopback             */
  46. #define AP_IOCLP  0x02   /* Serial IO mode bit 1 - Tx -> Rx clock loop       */
  47. #define AP_IONZI  0x01   /* Serial IO mode bit 0 - NRZI                      */
  48. #define AP_DTINT  0x01   /* Data transfer mode = interrupts                  */
  49. #define AP_PBDTR  0x04   /* Port B mask to set DTR                           */
  50. #define AP_PBRTS  0x01   /* Port B mask to set RTS                           */
  51.  
  52. /*****************************************************************************/
  53. /* APR_ : Values for Adapter Parameters to do Reset on the object            */
  54. /*****************************************************************************/
  55.  
  56. #define APR_OM    0xC0   /* Reset Operating Mode clear all bits              */
  57. #define APR_IO    0xF8   /* Reset Serial IO Mode clear all bits              */
  58. #define APR_DT    0xFE   /* Reset Data transfer mode clear all bits          */
  59. #define APR_PB    0xC0   /* Port B mask to clear all bits                    */
  60.  
  61. /*****************************************************************************/
  62. /* MCA POS register gadgets                                                  */
  63. /*****************************************************************************/
  64.  
  65. #define POS_IDMPAA1 0x11
  66. #define POS_IDMPAA2 0x13
  67.  
  68. #define COPY8273CMD(pDX,CmdName) { pDX->CmdName[0] = Proto##CmdName[0];  \
  69.                                    pDX->CmdName[1] = Proto##CmdName[1];  \
  70.                                  }
  71.  
  72.